import VectorTileLayer from "@arcgis/core/layers/VectorTileLayer.js"//VectorTileLayer类用于创建矢量切片图层对象
import WebTileLayer from '@arcgis/core/layers/WebTileLayer'//导入相关文件
import TileLayer from '@arcgis/core/layers/TileLayer'

const 浅色电子导航矢量底图_ = new VectorTileLayer({//创建矢量切片图层,用来显示浅色电子导航矢量底图
  url: "https://www.arcgis.com/sharing/rest/content/items/b9b35a2659804e17a75f3af99ed0277d/resources/styles/root.json"
})
const 深色电子导航矢量底图_ = new VectorTileLayer({//创建矢量切片图层,用来显示深色电子导航矢量底图
  url: "https://www.arcgis.com/sharing/rest/content/items/5c3a12919f9d4c2fbac14baa39e2d580/resources/styles/root.json"
})
const gdMapLayer_矢量标注 = new WebTileLayer({
  title: '天地图标注',
  spaticalReference: { wkid: 3857 },
  urlTemplate: 'https://t6.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={col}&TILEROW={row}&TILEMATRIX={level}&tk=82f785f8fb8fcb5fc9d092a7e030defc'
})
const gdMapLayer_矢量 = new WebTileLayer({
  title: '天地图矢量',
  copyright: "By_地信Q",
  spaticalReference: { wkid: 3857 },
  urlTemplate: "https://t6.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={col}&TILEROW={row}&TILEMATRIX={level}&tk=82f785f8fb8fcb5fc9d092a7e030defc"
})
const gdMapLayer_影像标注 = new WebTileLayer({
  title: '天地图影像标注',
  spaticalReference: { wkid: 3857 },
  urlTemplate: 'https://t6.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={col}&TILEROW={row}&TILEMATRIX={level}&tk=82f785f8fb8fcb5fc9d092a7e030defc'
})
const gdMapLayer_影像 = new WebTileLayer({
  title: '天地图影像',
  copyright: "By_地信Q",
  spaticalReference: { wkid: 3857 },
  urlTemplate: 'https://t6.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={col}&TILEROW={row}&TILEMATRIX={level}&tk=82f785f8fb8fcb5fc9d092a7e030defc'
})

const 深色底图_ = new VectorTileLayer({//创建矢量切片图层,用来显示深色底图
  url: "https://cdn.arcgis.com/sharing/rest/content/items/b18b0ac0610042039e0810dbf7bbd02e/resources/styles/root.json",
})
const 深色参考_ = new VectorTileLayer({//创建矢量切片图层,用来显示深色底图
  url: "https://cdn.arcgis.com/sharing/rest/content/items/0577cd11d16145b580ca5a2a8ab5c4d7/resources/styles/root.json",
  copyright: "By_地信Q",
})

const 灰色底图_ = new VectorTileLayer({//创建矢量切片图层,用来显示深色底图
  url: "https://cdn.arcgis.com/sharing/rest/content/items/5d170796488744c992dd5d445f5bc725/resources/styles/root.json",
})
const 灰色参考_ = new VectorTileLayer({//创建矢量切片图层,用来显示深色底图
  url: "https://cdn.arcgis.com/sharing/rest/content/items/333b607f5ed241e3be8a7740ec6d8538/resources/styles/root.json",
  copyright: "By_地信Q",
})

const topographic_ = new VectorTileLayer({//创建矢量切片图层,用来显示深色底图
  url: "https://cdn.arcgis.com/sharing/rest/content/items/3c86f87a8aa848f290737c2e2b65393c/resources/styles/root.json",
  copyright: "By_地信Q",
})

const 开放维基_ = new VectorTileLayer({//创建矢量切片图层,用来显示深色底图
  url: "https://cdn.arcgis.com/sharing/rest/content/items/3e1a00aeae81496587988075fe529f71/resources/styles/root.json",
  copyright: "By_地信Q",
})

const 混合参考_ = new VectorTileLayer({//创建矢量切片图层,用来显示深色底图
  url: "https://cdn.arcgis.com/sharing/rest/content/items/1c62ff85a58e4106a7e6c28d08449384/resources/styles/root.json",
  copyright: "By_地信Q",
})
const 影像_ = new TileLayer({
  url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",
})

export var 天地图矢量 = [gdMapLayer_矢量, gdMapLayer_矢量标注]
export var 天地图影像 = [gdMapLayer_影像, gdMapLayer_影像标注]
export var 深色底图 = [深色底图_,深色参考_]
export var 灰色底图 = [灰色底图_,灰色参考_]
export var 浅色电子导航矢量底图 = [浅色电子导航矢量底图_]
export var 深色电子导航矢量底图 = [深色电子导航矢量底图_]
export var topographic = [topographic_]
export var 开放维基 = [开放维基_]
export var 影像混合=[影像_,混合参考_]
